package com.ourteam.education.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-09-22 15:15:20
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class CoursePriceBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.education.dao.CoursePrice coursePrice;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(coursePrice);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.education.dao.ICoursePriceDAO.Id);
		
																																										
				
																
				
																
				
																
		mappedDaoFields.put("courseDefineId",com.ourteam.education.dao.ICoursePriceDAO.CourseDefineId);
		
																																						
				
																
				
																
				
																				
		mappedDaoFields.put("campusId",com.ourteam.education.dao.ICoursePriceDAO.CampusId);
		
																																		
				
																
				
																
				
																								
		mappedDaoFields.put("price",com.ourteam.education.dao.ICoursePriceDAO.Price);
		
																														
				
																
				
																
				
																												
		mappedDaoFields.put("priceUnit",com.ourteam.education.dao.ICoursePriceDAO.PriceUnit);
		
																										
				
																
				
																
				
																																
		mappedDaoFields.put("status",com.ourteam.education.dao.ICoursePriceDAO.Status);
		
																						
				
																
				
																
				
																																				
		mappedDaoFields.put("remarks",com.ourteam.education.dao.ICoursePriceDAO.Remarks);
		
																		
				
																
				
																
				
																																														
				
										
		mappedDaoFields.put("courseName",com.ourteam.education.dao.ICoursePriceDAO.CourseName);
								
				
																
				
																																														
				
																
				
										
		mappedDaoFields.put("campusName",com.ourteam.education.dao.ICoursePriceDAO.CampusName);
								
				
																																								
		mappedDaoFields.put("deleteFlag",com.ourteam.education.dao.ICoursePriceDAO.DeleteFlag);
		
														
				
																
				
																
				
																																												
		mappedDaoFields.put("ammount",com.ourteam.education.dao.ICoursePriceDAO.Ammount);
		
										
				
																
				
																
				
																																																
		mappedDaoFields.put("chargingMode",com.ourteam.education.dao.ICoursePriceDAO.ChargingMode);
		
						
				
																
				
																
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public CoursePriceBean() {
		super();
	    		
		this.coursePrice = new com.ourteam.education.dao.CoursePrice();
                
	}
	
		
	public CoursePriceBean(com.ourteam.education.dao.CoursePrice coursePrice) {
		super();
	
		this.coursePrice = coursePrice;
		
	}
		
		
		
    	
	public com.ourteam.education.dao.CoursePrice convertToCoursePrice(){
		return this.coursePrice;
	}
	
	public com.ourteam.education.dao.CoursePrice convertTo(){
		return this.coursePrice;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.coursePrice.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.coursePrice.setId(id);
	}
		
																					
			
									
			
									
		
		
					
			
		
	/**
	 * Get courseDefineId
	 * 
	 * @return long
	 */
	public long getCourseDefineId(){
		return (long) this.coursePrice.getCourseDefineId();
	}
	
	/**
	 * Set courseDefineId
	 * 
	 * @parameter long
	 */
	public void setCourseDefineId(long courseDefineId){
		
		this.coursePrice.setCourseDefineId(courseDefineId);
	}
		
																			
			
									
			
									
		
		
							
			
		
	/**
	 * Get campusId
	 * 
	 * @return long
	 */
	public long getCampusId(){
		return (long) this.coursePrice.getCampusId();
	}
	
	/**
	 * Set campusId
	 * 
	 * @parameter long
	 */
	public void setCampusId(long campusId){
		
		this.coursePrice.setCampusId(campusId);
	}
		
																	
			
									
			
									
		
		
									
			
		
	/**
	 * Get price
	 * 
	 * @return double
	 */
	public double getPrice(){
		return (double) this.coursePrice.getPrice();
	}
	
	/**
	 * Set price
	 * 
	 * @parameter double
	 */
	public void setPrice(double price){
		
		this.coursePrice.setPrice(price);
	}
		
															
			
									
			
									
		
		
											
			
		
	/**
	 * Get priceUnit
	 * 
	 * @return String
	 */
	public String getPriceUnit(){
		return (String) this.coursePrice.getPriceUnit();
	}
	
	/**
	 * Set priceUnit
	 * 
	 * @parameter String
	 */
	public void setPriceUnit(String priceUnit){
		
		this.coursePrice.setPriceUnit(priceUnit);
	}
		
													
			
									
			
									
		
		
													
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.coursePrice.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.coursePrice.setStatus(status);
	}
		
											
			
									
			
									
		
		
															
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.coursePrice.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.coursePrice.setRemarks(remarks);
	}
		
									
			
									
			
									
		
		
																						
			
					
			
		
	/**
	 * Get courseName
	 * 
	 * @return String
	 */
	public String getCourseName(){
		
		return (String) this.coursePrice.getCourseName();
			
	}
	
					
			
									
		
		
																						
			
									
			
					
			
		
	/**
	 * Get campusName
	 * 
	 * @return String
	 */
	public String getCampusName(){
		
		return (String) this.coursePrice.getCampusName();
			
	}
	
					
		
		
																	
			
		
	/**
	 * Get deleteFlag
	 * 
	 * @return int
	 */
	public int getDeleteFlag(){
		return (int) this.coursePrice.getDeleteFlag();
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @parameter int
	 */
	public void setDeleteFlag(int deleteFlag){
		
		this.coursePrice.setDeleteFlag(deleteFlag);
	}
		
							
			
									
			
									
		
		
																			
			
		
	/**
	 * Get ammount
	 * 
	 * @return long
	 */
	public long getAmmount(){
		return (long) this.coursePrice.getAmmount();
	}
	
	/**
	 * Set ammount
	 * 
	 * @parameter long
	 */
	public void setAmmount(long ammount){
		
		this.coursePrice.setAmmount(ammount);
	}
		
					
			
									
			
									
		
		
																					
			
		
	/**
	 * Get chargingMode
	 * 
	 * @return String
	 */
	public String getChargingMode(){
		return (String) this.coursePrice.getChargingMode();
	}
	
	/**
	 * Set chargingMode
	 * 
	 * @parameter String
	 */
	public void setChargingMode(String chargingMode){
		
		this.coursePrice.setChargingMode(chargingMode);
	}
		
			
			
									
			
									
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof CoursePriceBean) == false) {
            return false;
        } // end if

        CoursePriceBean other = (CoursePriceBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.education.dao.CoursePrice tempCoursePrice = other.convertToCoursePrice();
        
        if(tempCoursePrice == null || this.coursePrice == null){
        	isEqual = false;
        }
        else if(tempCoursePrice == this.coursePrice || tempCoursePrice.equals(this.coursePrice) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static CoursePriceBean[] toArray(com.ourteam.education.dao.CoursePrice[] aCoursePrices){
		
		return toArray(aCoursePrices,null);
	}
	
	public static CoursePriceBean[] toArray(com.ourteam.education.dao.CoursePrice[] aCoursePrices , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aCoursePrices)){
		 	return new CoursePriceBean[0];
		 }
		 
		 int length = aCoursePrices.length;
		 
		 CoursePriceBean[] beans = new CoursePriceBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new CoursePriceBean(aCoursePrices[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aCoursePrices[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}